package com.company.test17;


import com.sun.xml.internal.ws.developer.UsesJAXBContextFeature;

import javax.swing.*;
import javax.swing.plaf.FontUIResource;
import java.awt.*;

/**
 * Created by Administrator on 2016.9.19.
 */
public class Test17_06 extends JFrame {
    private JTextArea jtaDescription=new JTextArea();

    public Test17_06(){
        jtaDescription.setFont(new Font("Serif",Font.PLAIN,14));

        jtaDescription.setLineWrap(true);
        jtaDescription.setWrapStyleWord(true);
        jtaDescription.setEditable(true);

        JScrollPane scrollPane=new JScrollPane(jtaDescription);
        setLayout(new BorderLayout(5,5));
        //this.Add(jtaDescription,BorderLayout.WEST);
        this.add(scrollPane,BorderLayout.CENTER);
    }

    public static void main(String[] args){
        JFrame frame=new Test17_06();
        frame.setTitle("测试");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(300,300);
        frame.setVisible(true);
        frame.setLocationRelativeTo(null);
    }
}
